import router from '@/router/index'
import Vue from 'vue'
import WechatOauth2 from './wechatOauth2'

Vue.use(WechatOauth2,{
  agent: true,
  jsApiList: ['checkJsApi', 'agentConfig', 'selectEnterpriseContact', 'previewFile','scanQRCode']
});

router.beforeEach((to, from, next) => {
  if (to.meta.title) {
    document.title = to.meta.title;
  } else {
    document.title = "welcome";
  }
  Vue.$permissionCheck(to,from,next);
});


